.canvas-note-picker {
  position: fixed;
  top: 48px;
  right: 0;
  width: 400px;
  height: calc(100vh - 48px);
  background: var(--neutral-50);
  border-left: 1px solid var(--neutral-100);
  display: flex;
  flex-direction: column;
  z-index: 2;

  .canvas-note-picker-input-container {
    display: flex;
    align-items: center;
    padding-left: 2px;
    margin: var(--spacing-2);
    background-color: var(--neutral-100);
    border-radius: 4px;

    input {
      border: 0;
      outline: 0;
      width: 100%;
      height: 40px;
      padding-left: 10px;
      color: var(--text-primary);
      background-color: var(--neutral-100);
      border-radius: 4px;
    }
  }

  svg.lucide {
    padding: var(--spacing-2);
  }

  .canvas-note-picker-tabs {
    display: flex;
    border-bottom: 1px solid var(--neutral-100);
    background-color: var(--bg-secondary);
  }

  .canvas-note-picker-tab {
    padding: 4px 8px;
    margin: 8px;
    margin-right: 0;
    border-radius: 4px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-600);
    transition: color var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal);

    &:hover {
      color: var(--text-primary);
      background-color: var(--neutral-100);
    }

    &.active {
      color: var(--text-primary);
      background-color: var(--neutral-100);
    }
  }

  .canvas-note-picker-tab-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;

    &::-webkit-scrollbar {
      display: none;
    }
  }

  .canvas-note-picker-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--neutral-400);
    font-size: 14px;
  }

  .canvas-note-picker-load-more {
    margin: 0 16px 16px 16px;
    padding: 10px 16px;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-700);
    transition: background-color var(--transition-normal);

    &:hover {
      background: var(--neutral-200);
    }

    &:active {
      transform: scale(0.98);
    }
  }

  .canvas-note-picker-results {
    flex: 1;
    overflow-y: auto;

    &::-webkit-scrollbar {
      display: none;
    }

    .canvas-note-picker-section {
      margin-bottom: 20px;
    }

    .canvas-note-picker-section-title {
      font: var(--sm);
      font-size: 12px;
      color: var(--neutral-400);
      padding: 10px 16px;
      font-weight: 500;
    }

    .notes-list-item {
      padding: var(--spacing-4);
      border-bottom: 1px solid var(--neutral-100);
      cursor: pointer;
      transition-property: background-color;
      transition-duration: var(--transition-normal);

      &:hover {
        background-color: var(--bg-secondary);
      }

      .notes-list-item-title {
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;

        &.untitled {
          color: var(--neutral-300);
        }
      }
    }

    .canvas-note-picker-images {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 16px;
    }

    .canvas-image-card {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 8px;
      cursor: pointer;
      transition: transform var(--transition-normal);
      box-shadow: var(--shadow-2);

      &:hover {
        transform: scale(1.01);
        box-shadow: var(--shadow-4);
      }

      &:active {
        transform: scale(0.98);
      }
    }
  }
}

.canvas-note-picker-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}

.canvas-image-card-grid {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-2);

  &:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-4);
  }

  &:active {
    transform: scale(0.98);
  }
}